package com.zhaojindong.ioc.component.propertiesvalue;

import lombok.extern.log4j.Log4j;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

@Log4j
public class PropValueTest {

    @Test
    public void testMethod () {

        ApplicationContext context = new AnnotationConfigApplicationContext(MainConfig.class);

        Person person = context.getBean(Person.class);
        log.info(person);
    }

}
